package homework.extendwork4.coding;

public final class Waxberry extends Fruits{
    private String strColor;
    public Waxberry(String strShape,String strTaste,String strColor){
        super(strShape,strTaste);
        this.setStrColor(strColor);

    }

    public final void face(){
        System.out.println("杨梅 face");
    }

    public String getStrColor() {
        return strColor;
    }

    public void setStrColor(String strColor) {
        this.strColor = strColor;
    }

    @Override
    public void eat() {
        System.out.println("杨梅酸甜适 中，⾮常好吃！");
    }

    @Override
    public String toString() {
        return "Waxberry{" +
                "strColor='" + strColor + '\'' +
                '}';
    }
}
